# -*- coding: utf-8 -*-

ESF_OWNER_58 = {
    'web': '58同城',
    'items': '//ul[@class="house-list-wrap"]/li',
    'item_id': '@data-trace',
    'title': 'div[@class="list-info"]/h2/a/text()',
    'baseinfo': 'div[@class="list-info"]/p[1]/span/text()',
    'address': 'div[@class="list-info"]/p[2]/span/a/text()',
    'publisher': 'div[@class="list-info"]/div[@class="jjrinfo"]/span/text()',
    'total_price': 'div[@class="price"]/p[@class="sum"]/b/text()',
    'unit_price': 'div[@class="price"]/p[@class="unit"]/text()',
    'published_time': 'div[@class="time"]/text()',
    'detail_link': 'div[@class="list-info"]/h2/a/@href',

    'detail_title': '//div[@class="main-wrap"]/div[@class="house-title"]/h1/text()',
    'wechat_link': '//div[@class="vx-phone-code"]/img/@src',
    'address_bar': '//div[@class="nav-top-bar fl c_888 f12"]/a/text()',
    'decoration': '//p[@class="area"]/span[@class="sub"]/text()',
    'construction_date': '//p[@class="toward"]/span[@class="sub"]/text()',
    'detail_address': '//ul[@class="house-basic-item3"]/li[last()]/span[@class="c_000 mr_10"]/a/text()',
    'publisher_phone': '//p[@class="phone-num"]/text()',
    'images_1': '//div[@id="generalType"]/div/ul/li/img/@data-src',
    'images_2': '//ul[@id="leftImg"]/li/img/@data-value',
    'detail_baseinfo': '//div[@class="general-item-wrap"]/ul/li'
}

RENT_OWNER_58 = {
    'web': '58同城',
    'items': '//ul[@class="house-list"]/li[@class="house-cell"]',
    'item_id': '@logr',
    'title': 'div[@class="des"]/h2/a/text()',
    'baseinfo': 'div[@class="des"]/p[@class="room"]/text()',
    'community_name1': 'div[@class="des"]/p[@class="infor"]/a[2]/text()',
    'community_name2': 'div[@class="des"]/p[@class="infor"]/text()[last()]',
    'unit_price': 'div/div[@class="money"]/b/text()',
    'published_time': '@logr',
    'detail_link': 'div[@class="des"]/h2/a/@href',
    'detail_title': '//div[@class="house-title"]/h1/text()',
    'address_bar': '//div[@id="header-wrap"]/div[2]/a/text()',
    'pay_type': '//div[@class="house-pay-way f16"]/span[2]/text()',
    'unit_price_detail': '//div[@class="house-pay-way f16"]/span[1]/b/text()',
    'images': '//ul[@id="housePicList"]/li/img/@lazy_src',
    'detail_baseinfo': '//ul[@class="f14"]/li',
    'publisher_name': '//div[@id="single"]/p/a/text()',
}